package com.wenchao.libwifi.bean;

import com.wenchao.libwifi.EncryptType;

import java.io.Serializable;

/**
 * 【类的描述】介绍一下该类的用途
 *
 * @author zhangwenchao
 * @date 2022-02-15
 */
public class WifiBean implements Serializable {

    public String ssid;
    public EncryptType encryptType;
    public WifiLevel level;
    public int networkId;
    public State state = State.CONNECT_ENABLE;
    public int frequency;

    public WifiBean(String ssid, EncryptType encryptType, WifiLevel level) {
        this.ssid = ssid;
        this.encryptType = encryptType;
        this.level = level;
    }

    public enum WifiLevel {
        LEVEL_FULL("极佳"),
        LEVEL3("强"),
        LEVEL2("弱"),
        LEVEL1("差");

        public String desc;

        WifiLevel(String desc) {
            this.desc = desc;
        }
    }

    public enum State {
        CONNECTED,
        SAVED,
        CONNECT_ENABLE
    }
    
}
